package com.xinqi.modules.prepare.prepare.enums;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.xinqi.common.base.annotations.Describe;
import com.xinqi.common.base.enums.BaseEnum;
import lombok.Getter;

/**
 * 互动视频帧类型
 * <p>
 * 互动视频帧类型，QUESTION:试题；IMAGE:图片；DOCUMENT:文档；
 * </p>
 *
 * @author linkai
 * @date 2023/03/19
 */
@Describe("互动视频帧类型")
public enum PrepareVideoPointTypeEnum implements BaseEnum {

    QUESTION("QUESTION", "试题"),
    IMAGE("IMAGE", "图片"),
    DOCUMENT("DOCUMENT", "文档"),
    ;

    @Getter(onMethod_ = {@JsonValue})
    private final String code;

    @Getter
    private final String describe;

    PrepareVideoPointTypeEnum(String code, String describe) {
        this.code = code;
        this.describe = describe;
    }

    @JsonCreator
    public static PrepareVideoPointTypeEnum of(String code) {
        return BaseEnum.of(PrepareVideoPointTypeEnum.class, code);
    }

}
